package com.github.zuihou.authority.dao.common;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.zuihou.authority.dto.common.AreaListTreeDTO;
import com.github.zuihou.authority.dto.common.AreaQueryDTO;
import com.github.zuihou.authority.entity.common.Area;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 地区表
 * </p>
 *
 * @author zuihou
 * @date 2019-07-02
 */
@Repository
public interface AreaMapper extends BaseMapper<Area> {


    /**
     * 根据条件获取列表
     *
     * @param page
     * @param areaQueryDTO
     * @return
     */
    List<AreaListTreeDTO> pageByParentCode(IPage<AreaListTreeDTO> page, @Param("queryDTO") AreaQueryDTO areaQueryDTO);
}
